<template>
  <div class="">
    <p :style="myStyle" :class="['tab-title', level == '3' ? 'three-le' : level == '2' ? 'second-le' : 'first-le']">{{
      title }}</p>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const props = defineProps({
  title: String,
  myStyle: Object,
  level: String || Number,
})
</script>
<style lang="scss" scoped>
.tab-title {
  font-size: 20px;
  color: #303133;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;

  &.second-le {
    text-align: left;
    font-size: 18px;
  }

  &.three-le {
    text-align: left;
    font-size: 16px;
  }
}
</style>
